// <copyright file="Default.aspx.cs" company="YUIAsp.Net">
// Copyright (c) 2009 All Right Reserved
// </copyright>
// <author>raul popescu</author>
// <email>dev@yuiasp.net</email>
// <date>2009-01-30</date>
// <summary>YUIAsp.Net File</summary>

using System;

namespace YUIAspNetDemo.Editor
{
    public partial class General : BaseDemoPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                this.editor.HTML = "Welcome to the\n\n\n\t\t <a href='http://www.yuiasp.net/free-aspnet-controls/editor/details.aspx'>YUIAspNet Editor</a>. Feel free to change this text!";
            }
            this.btn.Click += new EventHandler<YUIAspNet.ButtonEventArgs>(btn_Click);
        }

        void btn_Click(object sender, YUIAspNet.ButtonEventArgs e)
        {
            this.lbl.Text = this.editor.HTML;
        }
    }
}
